import {
	request
} from "../common/config.js"

//获取轮播图
export function getBanner() {
	return request({
		url: '/banner',
		method: 'get'
	})
}
export function getHomeDragonBall() {
	return request({
		url: `/homepage/dragon/ball`,
		method: 'get'
	})
}

//获取首页导航条圆环icon
export function getNavbarIcon() {
	return request({
		url: "/homepage/dragon/ball",
		method: 'GET'
	})
}

// 推荐歌单
export function getRecSongsSheet(limit) {
	return request({
		url: `/personalized?limit=${limit}`,
		method: 'get'
	})
}

export function getEveSongs() {
	return request({
		url: `/recommend/songs`,
		method: 'get'
	})
}

// 电台推荐
export function _getRecommendDj() {
	return request({
		url: `/dj/recommend`,
		method: 'get'
	})
}

// 电台详情
export function _getRadioDetailed(id) {
	return request({
		url: `/dj/detail?rid=${id}`,
		method: 'get'
	})
}

// 获取电台列表数据
export function _getRadioMsg(id, limit) {
	return request({
		url: `/dj/program?rid=${id}&limit=${limit}`,
		method: 'get'
	})
}

//数字专辑单曲
export function getAlbumSingle() {
	return request({
		url: `/album/list?limit=9`,
		method: 'get'
	})
}


// 获取独家放送
export function _getExclusive(limit) {
	return request({
		url: `/personalized/privatecontent`,
		method: 'get'
	})
}


// 获取推荐电台
export function _getFeaturedDisc(limit) {
	return request({
		url: `/top/playlist?limit=${limit}&order=hot`,
		method: 'get'
	})
}

export function _getPersonalFm() {
	return request({
		url: `/personal_fm`,
		method: 'get'
	})
}

// 最新上架专辑
export function _getAlbumNewest(limit) {
	return request({
		url: `/album/list?limit=${limit}`,
		method: 'get'
	})
}

export function _getAlbumList(params) {
	return request({
		url: `/album/songsaleboard`,
		params,
		method: 'get'
	})
}